package cn.kent.mapper;

import cn.kent.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface UserMapper extends BaseMapper<User> {

    void updateUsernameById(@Param("id") String id,@Param("name") String name);

    int updatePassword(User user);

    List<User> selectPageList(Page<User> page);

    @Select("select * from user")
    List<User> selectAll();
}
